package com.nsgf.library.ui.page;

import androidx.lifecycle.ViewModel;

import com.kunminx.architecture.ui.state.State;
import com.nsgf.library.data.api.APIs;
import com.nsgf.library.data.bean.AddressBean;
import com.nsgf.library.data.bean.BusinessBean;
import com.nsgf.library.data.bean.ChartDataBean;
import com.nsgf.library.data.bean.ClockInBean;
import com.nsgf.library.data.bean.DisplacementBean;
import com.nsgf.library.data.bean.FacilityBean;
import com.nsgf.library.data.bean.LibraryInfo;
import com.nsgf.library.data.bean.MessageBean;
import com.nsgf.library.data.bean.MonitorBean;
import com.nsgf.library.data.bean.OrderListBean;
import com.nsgf.library.data.bean.ProductBean;
import com.nsgf.library.data.bean.ProjectBean;
import com.nsgf.library.data.bean.TransfusionBean;
import com.nsgf.library.data.bean.UserInfo;
import com.nsgf.library.data.bean.WareHouseBean;
import com.nsgf.library.data.bean.WaterRecordsBean;
import com.nsgf.library.data.bean.WorkOrderDetailBean;
import com.nsgf.library.utils.Kits;
import com.nsgf.library.utils.SysUtil;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;

/**
 * Create by GC at 2024/9/11
 */
public class StateHolder extends ViewModel {

    public final State<String> name = new State<>(UserInfo.getInstance().getName());

    public final State<List<OrderListBean.ListBean>> orderList = new State<>(new ArrayList<>());
    public final State<String> titleBar = new State<>("");
    public final State<String> id = new State<>(UserInfo.getInstance().getId());
    public final State<String> avatar = new State<>("");
    public final State<String> phone = new State<>("");
    public final State<String> position = new State<>("");
    public final State<String> time = new State<>(UserInfo.getInstance().getName());
    public final State<String> version = new State<>(SysUtil.getAppVersion());
    public final State<List<LibraryInfo>> testList = new State<>(null);
    public final State<List<LibraryInfo.ReservoirBean>> patrolRiver = new State<>(new ArrayList<>());
    public final State<List<LibraryInfo.ReservoirBean>> patrolReservoir = new State<>(new ArrayList<>());

    public final State<LibraryInfo> registerInfo = new State<>(new LibraryInfo());

    public final State<List<MonitorBean.TestNumBean>> tests = new State<>(new ArrayList<>());//位移测次

    public final State<List<BusinessBean>> business = new State<>(new ArrayList<>());
    public final State<List<MessageBean.DataBean>> noticesList = new State<>(new ArrayList<>());

    public final State<List<LibraryInfo>> signRecordList = new State<>(new ArrayList<>());
    public final State<LibraryInfo> signSummaryResult = new State<>(new LibraryInfo());

    public final State<MessageBean.DataBean> message = new State<>(new MessageBean.DataBean());
    public final State<List<AddressBean>> inviterList = new State<>(new ArrayList<>());
    public final State<List<ProductBean>> goodsList = new State<>(new ArrayList<>());


}
